Replication code and data
Authors: Taylor C. Boas, F. Daniel Hidalgo, and Guillermo Toral. 
Paper: "Competence versus Priorities: Negative Electoral Responses to Education Quality in Brazil"
Contact email: tboas@bu.edu
Date: June 24, 2020

These files replicate several Appendix tables containing descriptive statistics. The file descriptives.R contains all the analysis. 

The following files are in the "data" subdirectory:

age_muni_18plus_2010.xlsx, educ_muni_18plus_2010.xlsx, race_muni_18plus_2010.xlsx, sex_muni_18plus_2010.xlsx: municipal population by age, education, race, and sex in Brazil's 2010 census, limited to residents 18 and older (sampling frame for the surveys). Retrieved from SIDRA, https://sidra.ibge.gov.br/pesquisa/censo-demografico/demografico-2010/inicial. 

municipios.RData: Names and ID numbers of Brazil's municipalities, from the Instituto Brasileiro de Geografia e Estatistica (IBGE), augmented with columns used in the administration of the online survey.

ESTADOS E CAPITAIS DO BRASIL.html: Webpage used to match state abbreviations to Brazilian regions.

The user will also need to download the AmericasBarometer survey data files for Brazil (Stata format), years 2007--2019, from https://www.vanderbilt.edu/lapop/data-access.php and save them in this directory.

The code also loads data files from other main directories in the replication package.